package com.dhcc.bpm.modules.log.service.impl;

import com.dhcc.bpm.modules.log.entity.OperLog;
import com.dhcc.bpm.modules.log.vo.OperLogVO;
import com.dhcc.bpm.modules.log.mapper.OperLogMapper;
import com.dhcc.bpm.modules.log.service.IOperLogService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @ClassName OperLogServiceImpl.class
 * @Description 操作日志记录 服务实现类
 * @Author xiaFaYu
 * @Date 2019-12-16 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service
public class OperLogServiceImpl extends BaseServiceImpl<OperLogMapper, OperLog> implements IOperLogService {

	/**
	 * @Description 自定义分页
	 * @Author xiafayu
	 * @Date 2020/2/24 15:36
	 * @param page
	 * @param operLog
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.log.vo.OperLogVO>
	 **/
	@Override
	public IPage<OperLogVO> selectOperLogPage(IPage<OperLogVO> page, OperLogVO operLog) {
		return page.setRecords(baseMapper.selectOperLogPage(page, operLog));
	}

}
